package nborm;

import org.jetbrains.annotations.Nullable;

import java.lang.reflect.Type;

/**
 * Created by YuanChao on 18-12-26.
 */
public interface TypeConverter<T> {
    String toDbString(T t);

    @Nullable
    T toObject(Type type, String jsonFromDb);
}
